import request from '@/utils/request'

// 查询网格列表
export function listFence(query) {
  return request({
    url: '/base/fence/list',
    method: 'get',
    params: query
  })
}

// 查询网格详细
export function getFence(fenceId) {
  return request({
    url: '/base/fence/' + fenceId,
    method: 'get'
  })
}

// 新增网格
export function addFence(data) {
  return request({
    url: '/base/fence',
    method: 'post',
    data: data
  })
}

// 修改网格
export function updateFence(data) {
  return request({
    url: '/base/fence',
    method: 'put',
    data: data
  })
}

// 删除网格
export function delFence(fenceId) {
  return request({
    url: '/base/fence/' + fenceId,
    method: 'delete'
  })
}


// 查询网格combo
export function getFenceCombo(query) {
  return request({
    url: '/base/fence/combo',
    method: 'get',
    params: query
  })
}
